package com.zlq.cn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 影片评论
 * </p>
 *
 * @author zhoucl
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("movie_comment")
@Accessors(chain = true)
@ApiModel(value = "MovieComment对象", description = "影片评论")
public class MovieComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "影片评论id")
    @TableId(value = "movie_comment_id", type = IdType.AUTO)
    private Integer movieCommentId;

    @ApiModelProperty(value = "影片id", required = true)
    @NotNull(message = "影片id不能为空")
    private Integer movieId;

    @ApiModelProperty(value = "评论人id")
    private Integer userId;

    @ApiModelProperty(value = "评论人名称")
    private String avatarName;

    @ApiModelProperty(value = "评论人头像")
    private String avatarHead;

    @ApiModelProperty(value = "评分等级")
    private String rating;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime time;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "分类状态")
    private Integer status;
}
